package org.jeecg.entity.basedata;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.entity.charge.ChargeFeeRule;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 住户模块--收费标准
 * @Author: liurui
 * @Date:   2021-07-12
 * @Version: V1.0
 */
@Data
@TableName("base_fee_rule")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="base_fee_rule对象", description="住户模块--收费标准")
public class BaseFeeRule extends ChargeFeeRule {
    
	/**计算方式 0按月收费 1单价乘以面积 2一次性费用*/
	@Excel(name = "计算方式 0按月收费 1单价乘以面积 2一次性费用", width = 15)
    @ApiModelProperty(value = "计算方式 0按月收费 1单价乘以面积 2一次性费用")
	@Dict(dicCode = "computing_type")
	private Integer computingType;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**连续缴费周期(月)*/
	@Excel(name = "连续缴费周期(月)", width = 15)
    @ApiModelProperty(value = "连续缴费周期(月)")
	private Integer cycle;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
	private String delFlag;
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**当月是否收费 0不收 1收*/
	@Excel(name = "当月是否收费 0不收 1收", width = 15)
    @ApiModelProperty(value = "当月是否收费 0不收 1收")
	private Boolean isFirstFee;
	/**收费标准名*/
	@Excel(name = "收费标准名", width = 15)
    @ApiModelProperty(value = "收费标准名")
	private String name;
	/**滞纳金宽限天数*/
	@Excel(name = "滞纳金宽限天数", width = 15)
    @ApiModelProperty(value = "滞纳金宽限天数")
	private Integer overdueGraceDay;
	/**滞纳金收取比例 如12.5% 存12.5*/
	@Excel(name = "滞纳金收取比例 如12.5% 存12.5", width = 15)
    @ApiModelProperty(value = "滞纳金收取比例 如12.5% 存12.5")
	private java.math.BigDecimal overdueRatio;
	/**单价 元*/
	@Excel(name = "单价 元", width = 15)
    @ApiModelProperty(value = "单价 元")
	private java.math.BigDecimal price;
	/**项目id*/
	@Excel(name = "项目id", width = 15)
    @ApiModelProperty(value = "项目id")
	private String projectId;
	/**收费项id*/
	@Excel(name = "收费项id", width = 15)
    @ApiModelProperty(value = "收费项id")
	@Dict(dicCode = "id",dictTable = "charge_feeitem",dicText ="fee_name")
	private String feeId;
	/**舍入模式 4:四舍五入，0:向上，1:向下*/
	@Excel(name = "舍入模式 4:四舍五入，0:向上，1:向下", width = 15)
	@Dict(dicCode = "round_mode")
    @ApiModelProperty(value = "舍入模式 4:四舍五入，0:向上，1:向下")
	private Integer roundMode;
	/**tenantId*/
	@Excel(name = "tenantId", width = 15)
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**计算精度 0:元 1：角 2：分*/
	@Excel(name = "计算精度 0:元 1：角 2：分", width = 15)
    @ApiModelProperty(value = "计算精度 0:元 1：角 2：分")
	@Dict(dicCode = "unit_account")
	private Integer unitAccount;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;

	@TableField(exist = false)
	private String projectName;

	@TableField(exist = false)
	private String feeName;
}
